package com.dyz.LeetCodeforSwordFingerOffer;

/**
 * @author: daiyizheng
 * @date: 2021/7/8 23:55
 * @description:
 */
public class SumNums {
    public int sumNums(int n) {
        int sum = n;
        boolean flag =(n>0) && (sum+=sumNums(n-1))>0;
        return sum;

    }
}
